import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const routes = [
  {
    path: '/',
    name: 'home',
    component: HomeView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  },
  {path: '/a', component: () => import( '../../../myv01/src/views/A-El-文本组件.vue')},
  {path: '/b', component: () => import( '../../../myv01/src/views/B-El-属性绑定指令.vue')},
  {path: '/c', component: () => import( '../../../myv01/src/views/C-El-组件事件绑定指令.vue')},
  {path: '/d', component: () => import( '../../../myv01/src/views/D-El-组件双向绑定指令.vue')},
  {path: '/e', component: () => import( '../../../myv01/src/views/E-El-组件循环指令.vue')},
  {path: '/f', component: () => import( '../../../myv01/src/views/F-El-组件影藏显示指令.vue')},
  {path: '/g', component: () => import( '../../../myv01/src/views/G-El-员工列表练习.vue')},
  {path: '/h', component: () => import( '../../../myv01/src/views/H-El-组件个人简历练习.vue')},
  {path: '/i', component: () => import( '../../../myv01/src/views/I-El-按钮组件.vue')},
  {path: '/j', component: () => import( '../../../myv01/src/views/J-El-图标组件.vue')},
  {path: '/k', component: () => import( '../../../myv01/src/views/K-El-消息组件.vue')},
  {path: '/l', component: () => import( '../../../myv01/src/views/L-El-单选组件.vue')},
  {path: '/m', component: () => import( '../../../myv01/src/views/M-El-下拉选框组件.vue')},
  {path: '/n', component: () => import( '../../../myv01/src/views/I-El-按钮组件.vue')},
  {path: '/o', component: () => import( '../../../myv01/src/views/O-El-表单组件.vue')},
  {path: '/p', component: () => import( '../../../myv01/src/views/P-El-菜单组件.vue')}
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
